//生产环境
let proEnv = require('./config/pro.env.js');
//开发环境
let devEnv = require('./config/dev.env.js');
//代理地址
let target = process.env.NODE_ENV === 'production' ? proEnv.hostUrl : devEnv.hostUrl;
module.exports = {
    publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
    outputDir: 'cls-web',
    devServer: {
        port: 8010,
        disableHostCheck: true,
        proxy: {
            '/api': {
                target: target,
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': ''
                },
                logLevel: "debug"
            }
        }
    },
    transpileDependencies: [
        'vue-echarts',
        'resize-detector'
    ]
};